import request from "@/utils/request";

// 获取全部问题类型
export function getAppProblemTypeList(query) {
  return request({
    url: "/app/getAppProblemTypeList",
    method: "get",
    params: query,
  });
}

// 新增问题类型
export function addAppProblemType(data) {
  return request({
    url: "/app/addAppProblemType",
    method: "post",
    data,
  });
}

// 修改问题类型
export function updateAppProblemType(data) {
  return request({
    url: "/app/updateAppProblemType",
    method: "post",
    data,
  });
}

// 删除问题类型
export function deleteAppProblemType(data) {
  return request({
    url: "/app/deleteAppProblemType",
    method: "post",
    data,
  });
}

// 获取全部常见问题
export function getAppProblemsList(query) {
  return request({
    url: "/app/getAppProblemsList",
    method: "get",
    params: query,
  });
}

//   新增常见问题
export function addAppProblems(data) {
  return request({
    url: "/app/addAppProblems",
    method: "post",
    data,
  });
}

//   修改常见问题
export function updateAppProblems(data) {
  return request({
    url: "/app/updateAppProblems",
    method: "post",
    data,
  });
}

//   删除常见问题
export function deleteAppProblems(data) {
  return request({
    url: "/app/deleteAppProblems",
    method: "post",
    data,
  });
}
